<section id="content">
    <div style="background-color: #eee">
        <aside>
            <header style="padding-left: 90px"><?php echo $project->user_name.' '.$project->user_surname ?></header>
            <div class="aside_white_box">
                <div style=" position: absolute; top: 10px; ">
                       <img src="<?php echo $project->user_photo; ?>" class="aside_profile_image" alt="<?php echo $project->user_name.' '.$project->user_surname ?>"/>
                </div>
                <div class="aside_profile_description">
	        <?php echo $project->user_description ?>
                </div>			
            </div>
            <header><?php echo __('project info') ?></header>
            <div class="aside_white_box">
                <dl> 
                    <dt><?php echo __('Field')?>:</dt> 
                    <dd><span><?php echo __($project->field_name) ?></span></dd> 
                </dl> 
                <dl> 
                    <dt><?php echo __('Created')?>:</dt> 
                    <dd><span><?php echo $project->date_created ?></span></dd> 
                </dl> 
                <dl> 
                    <dt><?php echo __('Last edited')?>:</dt> 
                    <dd><span><?php echo $project->date_modify ?></span></dd> 
                </dl>
                <dl> 
                    <dt><?php echo __('Views')?>:</dt> 
                    <dd><span><?php echo $views_amount ?></span></dd> 
                </dl> 
                <dl> 
                    <dt><?php echo __('Comments')?>:</dt> 
                    <dd><span><?php echo $all_comments_amount ?></span></dd> 
                </dl>
            </div>
             <header>copyright</header>
             <div class="aside_white_box">
                Attribution No Derivatives
                Read More
            </div>
            <?php if($tags): ?>
            <header><?php echo __('tags') ?></header>
             <div class="aside_white_box">  
                        <?php $tags = explode(',',substr($tags,0,-1));foreach($tags as $tag): ?>
                            <a href="/search?search_word=<?php echo $tag ?>" class="tag"><?php echo $tag ?></a>
                        <?php endforeach ?>
                            <div style="clear:both"></div>
            </div>
            <?php endif ?>
            <?php if($appreciations_amount): ?>
            <header><?php echo __('<span class="appreciate_amount">:appreciations_amount</span> appreciate it',array(':appreciations_amount'=>$appreciations_amount)) ?> </header>
            <div id="mini_contact_list" style="max-height: 329px; overflow: hidden">
                <ul class="list">
                    <?php foreach($appreciations as $appreciation): ?>                  
                    <li>
                        <div class="list_main_container ">
                            <img src="<?php echo $appreciation->photo ?>" alt="<?php echo $appreciation->name.' '.$appreciation->surname ?>" />
                            <div class="list_user_link"><a href="/desktop/<?php echo $appreciation->url ?>" class="desktop_link" title="<?php echo __('show desktop') ?>"></a><a href="/profile/<?php echo $appreciation->url ?>" class="profile_link" title="<?php echo __('show profile')?>"></a></div>
                            <div class="user_info">
                                <p class="mini_name ellipsis_character"><?php echo  $appreciation->name.' '.$appreciation->surname ?></p>
                                <p class="mini_info ellipsis_word"><?php echo $appreciation->description ?></p>
                            </div>
                        </div>
                    </li>
                    <?php endforeach ?>
                </ul>
            </div>
            <?php endif ?>
        </aside>
        <section style="background: #eee">
            <header id="project_header"><?php echo $project->title ?>
                
                <div style="float: right; margin-top: -5px">
                    <?php if (!$already_voted): ?>
                    <a href="#" id="btn_appreciate" class="button_header" style="float:left; margin-left: 20px; margin-right: 10px; " title="<?php echo __('appreciate it')?>"><div style="background-image: url('/public/application/images/icon_recommend.png')"></div><span class="appreciate_amount"><?php if($appreciations_amount) echo $appreciations_amount ?></span></a>
                    <?php else: ?>
                    <a class="button_header_active" style="float:left; margin-left: 20px; margin-right: 10px; "><div style="background-image: url('/public/application/images/icon_recommend.png')"></div><span class="appreciate_amount"><?php echo __('you appreciate it')?></span></a>
                    <?php endif ?>
                    <ul class="multiselect_buttons" id="filters" style="float: left;">
                        <li class="active" data-type="text"><div style="background-image: url('/public/application/images/icon_filtr_text.png')"></div></li>
                        <li class="active" data-type="image"><div style="background-image: url('/public/application/images/icon_filtr_image.png')"></div></li>
                        <li class="active" data-type="embed"><div style="background-image: url('/public/application/images/icon_filtr_embed.png')"></div></li>
                    </ul>             
                    <a href="#" class="button_header button_close" style="float:left; margin-left: 20px;"><div style="background-image: url('/public/application/images/icon_close.png')"></div></a> 
                </div>
            </header>
            <div id="project_content">  
                <ul class="project_list">
                    <li>
                        <?php echo $project->description ?>   
                        
                    </li>
                    <?php echo $containers ?>
                </ul>  
            </div>
            <div id="share_project">
                <?php echo __('Share this project') ?>
            </div>
             
            <section id="comments_container">
                <header id="comments_header"><?php echo __('Showing :comments_amount of :all_comments_amount comments',array(':comments_amount' => $comments_amount,':all_comments_amount' => $all_comments_amount)) ?>. <a href="#"><?php if ($comments_amount < $all_comments_amount) echo __('Want to see the rest?') ?></a></header>
                <?php if(!empty($comments)): ?>
                    <?php echo $comments ?>
                <?php else: ?>
                <div class="info_message">
                    <h2><?php echo __('No comments yet') ?></h2>
                    <?php echo __('It\'s quiet in here... can you hear the echo?') ?> 
                </div>
                <?php endif ?>
                <?php if(isset($profile)): ?>
                <header id="add_comment_header" style="border: 1px solid #bebebe; margin: 7px 0px 10px 0px; text-align: center"><?php echo __('Have something interesting to say ? This conversation is missing your voice.') ?></header>
                <?php echo Form::open('project/add_comment', array('class' => 'add_comment_form')) ?>
                 <article>
                       <div class="comment_content" >
                            <?php echo Form::textarea('comment', null, array('id' => 'comment', 'class' => 'comment_area', 'placeholder' => __('Write your comment here').'...')) ?>
                            <?php echo Form::submit('add_comment', __('Add comment'), array('id' => 'add_comment', 'class' => 'button_blue add_comment')) ?>
                           <div class="arrow_border"></div>
                            <div class="arrow"></div>
                        </div>
                        <div class="comment_user">
                            <img src="<?php echo $profile->photo->path(true,'mini_square'); ?>" class="photo" alt="<?php echo $profile->name.' '.$profile->surname ?>"/>
                            <div class="info">
                                
                                <p><?php echo $profile->name.' '.$profile->surname ?></p>
                                <p class="p_info"><?php echo $profile->description ?></p>
                            </div>
                            <div style="clear: both"></div>
                        </div>
                </article>
                <?php echo Form::close() ?>
                <?php endif ?>
            </section>
        </section>
        <div style="clear:left"></div>
    </div>
    <div style="clear: both;"></div>
</section>

<footer style="position:relative; height: 30px; top: 60px;"></footer>

